Skip to content

Add usage instructions to readme - #17

Merged
andrewrk merged 2 commits into
allyourcodebase:mainfrom
pfgithub:patch-1
Mar 28, 2026
Merged

Add usage instructions to readme#17
andrewrk merged 2 commits into
allyourcodebase:mainfrom
pfgithub:patch-1

Conversation

@pfgithub

Copy link
Copy Markdown
Contributor

No description provided.

@andrewrk andrewrk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread README.md Outdated
@pfgithub
pfgithub requested a review from andrewrk October 4, 2024 03:29
Comment thread README.md
- Add zig bindings with `@import("ffmpeg")`

```zig
exe.root_module.addImport("ffmpeg", ffmpeg_dep.module("av"));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in 0.14.0 it should be

exe_mod.linkLibrary(ffmpeg_dep.artifact("ffmpeg"));
exe_mod.addImport("ffmpeg", ffmpeg_dep.module("av"));

since exe's are created using

const exe_mod = b.createModule(.{
    .root_source_file = b.path("src/main.zig"),
    .target = target,
    .optimize = optimize,
});

@andrewrk
andrewrk merged commit d61cf8c into allyourcodebase:main Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants